from django.urls import path
from . import views
from rest_framework import routers

router = routers.DefaultRouter()
router.register('search', views.ShoeSearch, basename="shoes-search")
router.register('shoe2', views.ShoesView2)
router.register('deta', views.Detail)
router.register('type', views.TypeView)
router.register('update', views.UpdateUser)
urlpatterns = [
    path('user/', views.UserView.as_view()),
    path('login/', views.LoginView.as_view()),
    path('send/', views.SendView.as_view()),
    path('code/', views.CodeLoginView.as_view()),
    path('shoe/', views.ShoesView.as_view()),
    path('cate/', views.CateView.as_view()),
    path('a/', views.Shoe.as_view()),
    path('a2/', views.Shoe2.as_view()),
    path('hot/', views.HotWordViews.as_view()),
    path('cart/', views.CartView.as_view()),
    path('like/', views.LikeView.as_view()),
    path('address/', views.AddressView.as_view()),
    path('order/', views.OrderView.as_view()),
    path('link/', views.GetLink.as_view()),
    path('success/', views.SuccessView.as_view()),
    path('orderlist/', views.OrderListView.as_view()),
    path('orderdeta/', views.OrderDetailView.as_view()),
    # path('update/', views.UpdateUser.as_view()),
    # path('shoe2/', views.Shoesviews2.as_view()),
] + router.urls
